{extend name='admin@main'}



{block name="content"}
<div class="think-box-shadow">
    {include file='holiday/report_search'}
    <table class="layui-table margin-top-10" lay-skin="switch" >
        {notempty name='list'}
        <thead>
        <tr>
                        <th>姓名</th>
                        
                        
                        <th>年假</th>
                        <th>值班补休</th>
						
                        <th>
                            加班补休
                        </th>
						
						
                        <th>病假</th>
                        <th>看护假</th>

                        <th>事假</th>
                        <th>产假</th>

                        <th>探亲假</th>
						
                        <th>工伤假</th>
                        <th>婚假</th>	
						
						
                        <th>哺乳假</th>
						
						<th>丧假</th>
						
						<th>其他假</th>
        </tr>
        </thead>
        {/notempty}
        <tbody>
                    {foreach name="list" item="item"}
                    <tr>


                        <td><a href="/admin.html#{:url('index')}?name={$item.nickname}&leixing=">{$item.nickname}</a></td>

                        
                        <!-- <td>{$item.userLevel.name|default='--'}</td> -->
                        <td class='text-center nowrap'>{php}echo( getDays( $item['nickname'], 1 , $start_date , $end_date ) );{/php}</td>
                        <td class='text-center nowrap'>{php}echo( getDays( $item['nickname'], 2 , $start_date , $end_date ) );{/php}</td>
						
                        <td class='text-center nowrap'>
                            {php}echo( getDays( $item['nickname'], 3 , $start_date , $end_date ) );{/php}
                        </td>
                        
						<td class='text-center nowrap'>{php}echo( getDays( $item['nickname'], 4 , $start_date , $end_date ) );{/php}</td>
                        <td class='text-center nowrap'>{php}echo( getDays( $item['nickname'], 5 , $start_date , $end_date ) );{/php}</td>
						<td class='text-center nowrap'>{php}echo( getDays( $item['nickname'], 6 , $start_date , $end_date ) );{/php}</td>
						<td class='text-center nowrap'>{php}echo( getDays( $item['nickname'], 7 , $start_date , $end_date ) );{/php}</td>

                        <td class='text-center nowrap'>
                            {php}echo( getDays( $item['nickname'], 8 , $start_date , $end_date ) );{/php}
                        </td>
						
                        <td class='text-center nowrap'>{php}echo( getDays( $item['nickname'], 9 , $start_date , $end_date ) );{/php}</td>
                        <td>{php}echo( getDays( $item['nickname'], 10 , $start_date , $end_date ) );{/php}</td>
						
						
						
                        <td class="td-do">
                            {php}echo( getDays( $item['nickname'], 11 , $start_date , $end_date ) );{/php}
                        </td>
						
                        <td class='text-center nowrap'>
                            {php}echo( getDays( $item['nickname'], 12 , $start_date , $end_date ) );{/php}
                        </td>			
						
						<td>{php}echo( getDays( $item['nickname'], 13 , $start_date , $end_date ) );{/php}</td>
                    </tr>
                    {/foreach}
        </tbody>
    </table>

    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}

</div>

{/block}

{block name='script'}

<script src="__ROOT__/static/plugs/laydate/laydate.js"></script>

		
 <script>
    var start = {
        elem: '#start_date',
        //max: laydate.now(),
        istoday: false,
        choose: function (datas) {
            end.min = datas; //开始日选好后，重置结束日的最小日期
            end.start = datas; //将结束日的初始值设定为开始日
        }
    };
    var end = {
        elem: '#end_date',
        //max: laydate.now(),
        choose: function (datas) {
            start.max = datas; //结束日选好后，重置开始日的最大日期
        }
    };
    laydate.render(start);
    laydate.render(end);
</script>
{/block}